package com.ayuer.chapter05;

import java.util.PriorityQueue;

public class DataFlowFindMedian {
    public static void main(String[] args) {
        //建立小顶堆和大顶堆
        //大顶堆
        PriorityQueue<Integer> bigHeap = new PriorityQueue<>((a, b) -> b - a);
        PriorityQueue<Integer> smallHeap = new PriorityQueue<>((a, b) -> a - b);

    }
}
